Skip to main content

All Chains

Queries all chain info within the router contract.


query Router {
router {
all_chains {
factory_address
chain_id
chain_uid
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Router {\n router {\n all_chains {\n factory_address\n chain_id\n chain_uid\n }\n }\n}"}'

Open in Playground

Return Fields

FieldTypeDescription
factory_addressStringThe contract address of the factory.
chain_uidStringThe chain UID we have queried.
chain_idStringThe chain Id of the above chain UID.